﻿using System.Collections.Generic;
using HinduShop.Domain.Models;

namespace HinduShop.UI.ViewModels.StoreManager
{
    public class ProductListViewModel
    {
        List<ProductViewModel> products = new List<ProductViewModel>();

        public ProductListViewModel(IEnumerable<Product> products)
        {
            foreach (var product in products)
            {
                this.products.Add(new ProductViewModel(product));
            }            
        }

        public IEnumerable<ProductViewModel> Products 
        {
            get { return products; }
        }
    }
}